DSKCLI-290 : Avoid NPE if user is not logged in for encoded factories