Fixes NPE in Module project generation code.