[xulrunner] Protect EmbedLiteApp from dereferencing null pointer
[xulrunner] Sync with upstream. Merge remote-tracking branch 'origin/embedlite_31' into nemo_embedlite_31