Fix server crash after receiving empty password