Fix compatibility with NelmioApiDocBundle