Fixed NullPointerException raised in isUserDefinedField