Remove old search handler before adding the new one.