PNG: fix possible use of uninitialized pointer

It's unlikely though.