Using LanguageServer.jl with eglot in emacs

I have a problem of LanguageServer crashing soon after start, because eglot sends it nil where an array is expected.

So far, I added Base.length(::Nothing) = 0 to eglot-jl.jl as a workaround. Not sure which package is responsible for the bug - eglot-jl, eglot or LanguageServer.