Fix null problem in json conversion of Point