Prevent ReflectionException when modelClass dont exist in AdminExtensionCompilerPass