AppWindow::on_menu_file_save_as_example(): Check a dynamic_cast<>.

Found by Coverity Scan.