fix linter warnings
fix isEntity: don't modified passed jid object