Adding node js error fix

Closes-Bug:#1337832

Change-Id: I248a988a5ca9b89089987e69ae399833ddd70565