avoid panic with better path len check

This panicked before if I did eg. `ipfs bootstrap add /ip4/someip` or `ipfs bootstrap add /ip4/someip/tcp/4001`. Basically if there wasn't a trailing slash or a proper multihash. The loop references two elements anyways, so this is the proper length check.