[CoreBundle] Fix doctrine extension listener