Homestyx hydra

R1:5d4970d6b24a

Fix a bug where "View as Query" could replace a saved query row by ID, causing workboard 404s

Summary:
Fixes T13208. See that task for details.

The `clone $query` line is safe if `$query` is a builtin query (like "open").

However, if it's a saved query we clone not only the query parameters but the ID, too. Then when we `save()` the query later, we overwrite the original query.

So this would happen in the database. First, you run a query and save it as the workboard default (query key "abc123"):

| 123…
Repository: R1 hydra
Commit Date: Nov 1 2018