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.
Merge pull request #894 from lstor/dev

Fix getPixel for pixels with zero red value.