Fix NPE when stream requestRanges