Add query for bug 1262153

There are at least two test_rebuild_server* tests
that fail with this but I believe the root cause
is the same, so hopefully this query is good enough.

Related-Bug: #1262153

Change-Id: I993456e4d9357e84b0a2ff9fa4eb090c13bfa6c1
Merge "Add query for bug 1262153"