Fixed exception catching in JsonModel hasPath().