osha_tmgmt: Check the role exists before assigning permissions