err handling fix in _plan_dict_run_selector_affirmative
code cleanup