Fix error of reading property of undefined in isDefinedConstant function. 
Fix error of reading property of undefined in isDefinedConstant function. 

domchen/typescript-plus,domchen/typescript-plus,domchen/typescript-plus,domchen/typescript-plus,domchen/typescript-plus,domchen/typescript-plus