fix npe when cancel out of search criteria view