fix multiaddr panic on bad input