fix edge case bug with ie9 ie8 where parentNode is null