[DeviceConfig] Added method to get WiseML representation, fixed possible error in getByMacAddress()