fixed "BadValue $in needs an array" bug present in mongo 2.6

Hey,

Fixed a bug related to mongodb 2.6. When navigating to the /jobs/view page I would get "Can't canonicalize query: BadValue $in needs an array". The reason for this is because the $stats array started at 1 when it should have started at 0. I run $stats through array_values() which resets the key values. Mongodb 2.4 is more lenient hence you do not see this error.

@see https://stackoverflow.com/questions/22748000/mongodb-2-6-0-rc2-and-php-1-4-5-find-id-in