Fix argument checking for XMPPDiscoEntity