mac address validation - fix

``AttributeError: 'NoneType' object has no attribute 'startswith'``