Validate UUIDs before querying API

Prevents extra queries and error msgs on the console.

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>