fixed issue where purged posts would cause the upgrader to fail, closed #2359