(HLS) Fix NullPointerException for unconnected input port.