Fix NPE in project exporter