APNG: fix row count for images that contain a single byte

Fixes ticket #11421.