Fix some minor type errors when a search has no results