Fix generic LPU generator to properly process optional LPU name.