fixed mapping api to non-existing node

fix for bug 1959 in bugzilla

Change-Id: I124e25266f8f5eece54fd90915b8a1a8e476dea0
Signed-off-by: Juraj Sebin <jsebin@cisco.com>
Merge "fixed mapping api to non-existing node"