icc: guard against null passed to cd_icc_add_metadata

This prevents a segfault :)