Fix #105: property comparison to undefined is not always safe