correct a typo. 

p.s. i want added unit tests for this PR after approving of this https://github.com/FriendsOfSymfony/FOSRestBundle/pull/714, if you ok