Fixed issue with an error message showing 'undefined' for component name.
Fixed issue with an error message showing 'undefined' for component name.

intel-iot-devkit/iotkit-comm-c,intel-iot-devkit/iotkit-comm-c,n054/iotkit-comm-c,n054/iotkit-comm-c