Bug Fix: xhr totalSize not always set

totalSize not always set so we should only throw errors if there was
nothing to process.