Fix NPE when no XML schema is used.