Prevent null pointer when extracting AccountAttribute

AccountAttribute may contain null values (e.g. ownerEmail);
extract its attributes by checking for null values beforehand
as none of the three attributes are mandatory for a Gerrit
account to exist.

Bug: Issue 10645
Change-Id: I69b762e6ce9460fb87f026a3af0d784e37107f96
2 files changed