Fix a bug where we don't properly handle elements being removed from the dom between hide/show