give a (meaningful) Fatal if there is no root element in the document
fix typo in \date definition
use LookupDefinition instead of isDefinable (since this isn't LaTeX based)