Fix vlan id find method using wrong vlan type check