Fix NPE in PlanPrinter