fix(result): invalid status when exception raised
If an invalid endpoint url is defined, error are never returned by the agent because the exception raised don't change result status.
See comments in https://jira.worldline.com/browse/IGNGPF-557.
Modification effectuée par Jean-Marie KERLOCH