Throw an error when a <dependency> tag is missing `id` attribute.