Fix query to check that project exists in Gality Gate