Show warning when undo deletes non-empty folder

Closes issue #782.
Don’t show “pop-out” animation for empty rects

Fixes #833.