Correcting a crash that occurs when volunteering for an opportunity.

* Corrected crash by setting globalObject to an empty object if it is undefined.
* Correcting that issue exposed an issue with the preflight setting.