Avoid null pointer exception in SearchResultPanel.