Check for null in Json parsing