Fixed job miscounting bug when a string digit is returned

Change-Id: I857b56a6e78f715157c7f648929d6bf38eb74828
Merge "Fixed job miscounting bug when a string digit is returned"