UEditorEngine::IsPackageOKToSave

Checks if a provided package is valid to be saved.