Fix copy-paste error in conditional & remove unused vars

Fix a conditional in Jpeg2KDecoder::readData()

Sorry - how do I submit multiple pull requests for separate commits?  Do I need to branch each time?