check queue_time exists before using it

ping @chrisboulton