Prevent search view open crashing