Fixes exception when getwork request don't have 'id' field.