Return segment container without prefixed /.
Remove null checks and fix primitive type autoboxing null pointer.