Added null check to getNominalUser
[2569] NPE during authentication