Catch the correct type of translation error

Dave and I made tests around resolve_plan_attribute. There still needs to be a test for `get_attribute`