Fix crash when no password given