Bugfix: Define RangeError
Bugfix: Update size if it is unknown

Otherwise it will try to download more when nothing is available.