Improve checking for Cloud Queue message IDs.

The previous regex failed if the queue name contained a "-".