Fix #746 "NPE in xf:load with AVT"