Fix value checks as github returns null now

I'm getting null values in the user object, which fails the typeof "field" !== "undefined" check and errors out on null.length. This patch switches from an explicit undefined check.