Match topic before dispatching.