Fixed a bug in otrs.PendingJobs.pl with missing StateIDs.
Tidied otrs.PendingJobs.pl.
Merge branch 'master' of git.otrs.com:otrs/otrs