Fixed Path.with_stem() not validating an empty stem (#1200)