Fix exception when pressing enter before typing text in the filter