Set search session var to undefined if input empty