Fix a nonfatal error when loading search