Added extra checks when reading stsd atom