Undos, redos, actions, and thumbnails must be cleaned on creating a new
document.