Fix queue summary ("Quick Search") with non-lowercase statuses

798505e forced statuses to be stored in lower-case in the database.
However, the loop in QueueSummaryBy... stored the counts from the GROUP
BY (which are lower-case) in a hash, and looked them up by canonical
case -- resulting in "-"s displayed for all non-lowercase statuses.

Add the necessary lc() calls in the hash lookups to find the grouped
results.
Merge branch '4.0/queue-summary-status-casing' into 4.0-trunk