places: handle os.stat errors
* ran into this on a symlink to a path that didn't exist

(integrated from trunk branch change 2d1c5e0 by Todd Whiteman <toddw@activestate.com>)