Prevent JS error for search landing page