I updated to Drupal 7.22 a day or so ago and now when I try to uninstall some modules I'm getting this error which halts the uninstall process and I have no idea yet whether it actually succeeded in clearing those items from the database or leaving them there as unusable, unacknowledged litter. When returning to the Modules Uninstall page some of the attempts had those modules cleared from the list and other times they did not.
EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids() (line 7663 of /.../includes/common.inc