DDF-893  reversed logic on setting the metacard content type based on the <category> element