Avoid NPE when the expected tree is indeed null
Merge pull request #45 from ankon/imageio-jpeg-test-null

Avoid NPE when the expected tree is indeed null