moved XULRunner workaround in to the if condition to prevent Node from crashing