Fix getPixel for pixels with zero red value.

Remove an erroneous if that causes getPixel() to fail if the red value
of the pixel is zero.

Fixes #881.