Fix MAC address unique check (issue #3543)