Use userType to determine user display

If user type is not registered or a moderator, then display name,
reputation and all other stuff will not be present. In case of deleted
or unregistered user, this was causing null pointer exceptions. Fixing
the same.