Bugs/#9998
This is the quick fix to bug #9998.
It handles a job in an unexpected state gracefully, generating a warning in the process.
https://intranet.grid5000.fr/bugzilla/show_bug.cgi?id=9998 shows a way to reproduce : therefore, this MR is incomplete.
Edited by MARGERY David