check queue_time exists before using it
Merge pull request #3 from bc-vincent-zhao/add-guard

check queue_time exists before using it