[xulrunner] Guard possible crash point

If gl context is not ready when we hit this, we get the
engine crashing.

embedlite branch is already guarded with NS_ENSURE_TRUE