Fixed a bug when error was thrown on missing IPTC metadata.