Fixed incorrect handling of AttributeError on reports. component_type wa...

...s not set.