Fix code that checked for stream==nullptr after stream had been resolved to a "true stream". [ROCm/hip commit: b251d72917]
b251d72917