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

@filipsalpe because there is a sleep function and the flash message disappear before the end of the sleep