Fixed ZEN-12168 issue

I don't see the possible AttributeError that would be caught here. I'm also not a fan of catching UnboundLocalError under any circumstances. It's pretty clear why name, ownergroup, etc. would be unbound. Why get into that situation in the first place?