replace undefined check with http code

The github api returns a 404 if there is no user by that name.
As a user could feasibly be called 'undefined', the previous
attempt was not satisfactory.