Modify Job.toJSON to return 0 for attempts and _max_attemps for remaining when attempts is undefined