Topicmaps: fix hiding/deleting associations.

See #505.