Fixed a crash caused by empty password value.