fix tableview search results crash when array is empty