add some is_object checks
psr :/
Merge pull request #1465 from Mnkras/hotfix/topic-attribute

Fix #1462