Back out rare OOM js crash fix for build bustage.
Don't use undefined error function.
Remove media navigator check from nsdocument