[CDE-198]: handles NullPointerException when trying to resolve role for Anonymous User