Quick fix for a potential problem where node.parentNode is undefined.

Howdy there--I was working on an app that used mediaelementjs, and sometimes in Firefox I was seeing an error on this line where it was reaching into `node.parentNode`. For whatever reason, `node.parentNode` was undefined in these instances.

This guards against throwing an un-handled exception in that case.