Description: Checks if a MAC is valid (and optionally if it is not in use) and adds an error message to the message manager in case of an error.
Parameter:
mac: MAC address to test.
checkNonused: Set to true, to check for non using.
Returns:
true, if the MAC is correct (and optionally not in use) otherwise false.