fixed new NPE in Saxon