Make sure the DOM has not disappeared in the meantime.