net: dsa: Fix an error handling path in 'dsa_switch_parse_ports_of()'