protects when condor returns undefined; properly rollback transaction

Replaces #5296 PR in a not so intrusive way.
 - JobStatusLite won't crash when (py)condor plugin returns 'undefined'
 - Properly rollback the transaction

@ticoann please review