Catch GetLatestQueueNo() and always return a valid number.

If error return a random valid number not exceed max queue.