Fix bug with search state not being sent as JSON upon login.