Fix improper comparison for undefined

```javascript
// This is false
typeof undefined === undefined
// This is true
typeof undefined === "undefined"
// Because
typeof typeof anything === "string" // is true
```