ROOT is the start symbol of the grammar, but the validation function doesn't prohibit it in non-root positions. If such a tree is accepted and then the server is restarted, the parser will crash.
One possible way to fix the validation in nschneid/activedop@ff42e33