Check if a pointer is not null before dereferencing it.

Channel may not have attached stream. In this case footprint equals 0.