Fail and warn if <resource> elements are missing id attrs.