Fixes bug in case of doesntNeedFrame

doesntNeedFrame returned id instead of job.