Protect against calls when the DOM nodes have been removed.