Fixing an edge condition with PreloadFile.ReadSync()

Also fixing LocalStorage size determination at startup for its index.