Fix deleting topicmaps (#592).

New utility method:
{{{
js.find(array, fn)
}}}
Returns the first array element that matches a filter function.

See #592.