Bug fix in the TNG library to improve reading.

Reading single frame frame sets did not work properly.
Fixes #1502 and partial fix of #1510.

Reread frame set after getting stride length.

Extra check to avoid reading past end of file when
checking what data blocks are present.

Change-Id: I5275382bd49b5b46ebfdebe535c53d2f09015bc0