Set current topic to nil before deletion.

Fixes #1882