[[ Bug 14251 ]] Prevent a crash when saving in Legacy format