TMI-JPEG: Regression fix for NPE in metadata if delegate returns null metadata.