setValue function additional check added

1) removed the console.log for debugging
2) added _.isObject to check if prop is object prevents error in case
typeof prop is anything other than "string" (first case) or "object"