Fixes UI display of all search results

Some results are null, so we need to check for it.