Prevent NPE in UserImpl#getName, refs #919