Fixed status update for job execution

Fixed wrong status update for job execution introduced at
https://review.openstack.org/#/c/97637/

Change-Id: I4067667c19c8fd2e3eea72b2c1d64bba6016c19f
Closes-Bug: #1306720
Closes-Bug: #1317205
Merge "Fixed status update for job execution"