Raise an exception when modifying a populated search query.