Avoid crash if there are no input streams.