Prevent null references when results are null.