Fix NPE if no results are found