Fix issues with empty TopicList blocks / formatters.

There was some loop scope abuse that wasn't working.

Change-Id: I0f2fdeba46da8d4f84ad8d1f7f360cf1e310fcc5