Route all top-level errors through Platform.reportError.

This is in preparation for letting the game inject itself into this process.