Fix NullPointer if no there's no annotated classes with Entity