Fixed a bug in otrs.PendingJobs.pl with missing StateIDs.