Fix exception when handling empty db connection

2 jobs for master in 22 seconds (queued for 2 seconds)
latest