I get the message "Unable to save file since it contains no pages."

The file you are trying to save is empty, because all its pages have been either moved or deleted. You cannot save empty files.