Updated doctrine loader to not throw exceptions if doctrine isn't configured