Merge "hal: check for active input streams before assigning nullptr"