Close stream with error if 'to' not specified

If stream has empty or absent 'to', the server crashes. This is due to proceeding to authenticate and trying to create JID object with empty domain, which throws 'Argument error'.
This stream attribute is mandatory, so we can close it with corresponding error. See more: http://xmpp.org/rfcs/rfc6120.html#streams-attr-to