fixes URLSegment validation for non nested urls

Same behavior like in 

https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/model/SiteTree.php#L1653