fix for topics without category data (?)

@barisusakli lemme know if this is legit, if not, see line 195 as well