[TASK] Warn on invalid persistence.doctrine settings
If the Doctrine settings are removed (due to an error in the YAML files)
compiling proxy classes will just not happen. Since this is hard to
spot, throw an exception if the settings are NULL.