Bugfix on Doctrine REST route generation