Fix NPE

Again NPE when building from module that has never been build