[ticket/10050] adding .topicrow to template condition

PHPBB3-10050