Fixing a 'bad argument to decode' bug

When retrying jobs to the point of failure, there was a bug where the error message and
group were not getting properly set under the job's 'failure' attribute. This caused
certain commands like 'cancel' to fail.