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

Fix NULL dereference crash in .account password added in bd8d0cfbce9a38e0f2fc8b6903434c3553faf143
Fixes #10791