repository: better queryOn() exception with unknown entity