Fixed a crash in PNG/predictor in last row