TRQ-1738. Fix an error in counting job states for queues. Previously, the completed jobs got their own field, a duplicate of the array of all job states. Remove the extra field and just use the array, which is more robustly developed.