Resolver: fixing some JID translation wrong behaviours (#78)

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>