fix an exception that occurred when the pubspec was deleted
review comments
Merge pull request #1696 from devoncarew/devoncarew_fix_pub_delete

fix an exception that occurred when the pubspec was deleted