[BUGFIX] Make proxy compilation possible without DB connection
A hotfix to make proxy compilation work when no DB connection is
possible. This used to work, but now a connection to the DB is needed
to compile Doctrine proxies.
This is probably a side effect of the Doctrine update.
Releases: master, 3.0