Ensure Node exists before instanceof use (IE8 fix).