Python Error when packages are removed

When opening a pull request @stonier got this:

https://github.com/ros/rosdistro/pull/1088