Throw a ValueError if we get a non-JID for the JID