I'd say don't DI the guitar, but that is just me. Either record the amp along with the drums and get the mix right in your mixer, or do what johnsuitcase said and try to rig it up so that the drummer has the guitar in headphones, but the guitar isn't being recorded.
As for this problem, just...