fix an exception that occurred when the pubspec was deleted

When the pubspec.yaml file was deleted, or the file's container, the pub builder would try and read the contents of the file (and throw and exception).

@ussuri