Fixes NPE when user has no password.