Merge "hal: add NULL check for active input stream"