Reset the wait cursor when no layers are queryable.

Fix #573