EWD-1203 fix 500 error in case of the first login user