Small change so that if indexResults is null then return insteead of blowing up trying to use non-existing results