[WIP] PIM-3209 JobProfileController refactoring + fix bug export even with wrong file uploaded

NB : This PR is a re-working of a fix we passed on 1.2
@fitn you mean the doctrine var or should I inject ManagerRegistry instead of SmartManagerRegistry ?