feature #1613: Check save_as operations

(cherry picked from commit e2d11a0e1629664d5b89e1a7073f743cca91745a)