Fix handling of "0" as an url part

Previously, any url part with value "0" was discarded, now they will be preserved.