Comment says "makes sure the document is dirty before saving", but that doesn't apply here. The document does not need to be dirty to do a save as.