SERVER-12277 additional validation on text queries