Fix query validation to exclude unique check when editing queries.
Fix query validation to exclude unique check when editing queries.

This was introduced with patch 11416.

Change-Id: I9d98e52038352767f0e008396162515291dca6ca

Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server