Fix issue #152 of FOSOAuthServerBundle