Added 0 State filter to job selection query

AND state != 0 \

Line 37

Was causing a divide by zero error when processing 0 state jobs.  The
state of 0 was used to turn collection off in the previous tool, so
this just reimplements that heuristic.