Currently, wocky_porter_send_iq_async() accepts invalid JIDs as the to='' attribute, and then stanza_iq_handler_new() logs a warning and carries on. The former should fail sooner, and then the latter wouldn't need to deal with invalid JIDs.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.