Package Save: Can't check permissions when package name.xml is not yet created

This PR corrects the "PHP Warning:  fileowner(): stat failed" when saving a new package