uncomment ensure-valid-query

Sorry about that, I was testing something locally. This shouldn't have been committed.