I'm really just firewalling here, as I suspect a message with no To: header would have been dumped before it got this far.  However, I hate to write code that I know will crash when presented with bad input (I write enough code that I don't know will crash when presented with bad input).