Fix checking for malformed XMPP URI in DeleteResource.