router_readconfig: fix crash caused by non-clusters

A config like

rewrite ... ;

cluster ... ;

aggregate ... ;

match ... ;

would crash because rewrite doesn't have a name, but is looked up to be
the destination for match (it will never be, but that's a different
story).

Fixed that.