(C) Fix generated code of applications containing unconnected input port.