[xulrunner] Guard possible crash point

If gl context is not ready when we hit this, we get the
engine crashing.
Merge pull request #2 from rainemak/embedlite_26

[xulrunner] Guard possible crash point