Avoid Transpose to crash when exif data are invalid.

Avoid crash during Transpose when PIL/Pillow cannot process EXIF data and showing 'IndexError: string index out of range' error. 

It is related to this open Pillow issue: https://github.com/python-imaging/Pillow/issues/518