bugfix: JS error when no current topic is set