Fix deleting last block/attachment.