Fix a crash issue when used self-> to read variable, but self == nil.