Avoid null deref in ScratchObj/defaultArgsFor()

Use Scratch.app instead of DisplayObject/root() to access the app.
Ensure that a ScratchObj's list of costumes is never undefined or null.