fixes for MessageIndex.subs

 - $topics needs to be initialized (undefined index error when board is empty)
- missing global