switch: reverse if else in handle_vlan_port_read()