Fix to prevent error when jQuery data is accessed after the associated
element has left the DOM.