Core/Commands: Fix NULL dereference crash in .account password

Fix NULL dereference crash in .account password added in bd8d0cfbce9a38e0f2fc8b6903434c3553faf143
Fixes #10791
Merge pull request #10801 from jackpoz/account_password_crashfix

Core/Commands: Fix NULL dereference crash in .account password