Make getJobQueueLengths only count jobs with no token

Change-Id: Iddc20f500d8f542a9aeb967306c187d89667d59e