[KARAF-3269]ssh into karaf as user with no roles throws exception and user shell stays frozen
(cherry picked from commit fb7f0ddc0f1e34142135173ca013dfd84435bb51)