LPS-52251 use empty stream when null