[CHEF-4799] Check for nil when duping attr. arrays