Fix error when user cancels Save dialog; get CFBundleIdentifier and CFBundleShortVersionString from application