worker: Fix MaxDurationInQueue error
Created by: efritz
Old query could respond with a NULL value, which was unexpected by the scanner. Causes noisy (but harmless) error messages in v3.38.0:
Failed to determine queued duration” error=“sql: Scan error on column index 0, name \“age\“: converting NULL to int is unsupported
Test plan
New unit tests.