Fix boolean bork in Router.add

Should only throw if `path` fails both cases.