add if condition check to handle JSON field value: 0 and empty string

While JSON field value is 0 or empty string, value() returns undefined not the right value. This patch adds condition check to handle the case. Test cases are also included.
ex:
var J = jpp({a: {b: {c: 0}}});
console.log(J.value('a.b.c'));