task#5680 fix bugs occurs when no user is associated to profile