Fix issue #152 of FOSOAuthServerBundle

https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/issues/152