Do nothing if there is no querytime to flush
With the previous commit, flush_querytime() will have nothing to do most
of the time, so make it return early without executing an INSERT query.
I think this is good enough and we don’t need to make the app or
background runner actually skip the flush_querytime() calls.