Fix EOFError in scratch::ScratchRuntime/installProjectFromData

https://app.getsentry.com/scratchteam/scratch-flash/group/18498222/
Merge pull request #436 from LLK/fix-eof-error

Fix EOFError in scratch::ScratchRuntime/installProjectFromData