ND2: fix tile reading when the X coordinate is > 0

Fixes #12454.
Merge pull request #1215 from melissalinkert/rebased/dev_5_0/12454

ND2: fix tile reading when the X coordinate is > 0 (rebased onto dev_5_0)