#79 LMD build crashes if main module is empty