Fix translations for attributes_table component when using `row`

For some reason `@resource` from `AttributeTable` is `nil`, only
`@collection` is available. This fixes try to get the `@resource` class
from both `@resource` and `@collection`

**Issue:** #2556
Remove no longer defined resource from  attribute_table component

Since #2544 introduced multi record suport for attribute table we are
always leading with `@collection` instead `@resource`
Merge pull request #2557 from brennovich/2556-fix-translation-for-attributes_table

Fix translations for attributes_table when using `row`