[FOSUser] Fix compatibility issue with the latest FOSUserBundle