icc: guard against null passed to cd_icc_add_metadata