bugfix: fix comparison between fulljid.bare() and barejid

I detected an issue while I tried to compare 

`new xmpp.JID('romeo@example.net/9519407536580081').bare().equals(new xmpp.JID('romeo@example.net'))`

This PR fixes this issue.