Use array_values to rekey filtered array

If the path had an empty segment, for instancem 'foo//bar', requesting segment
2 would return the default value instead of 'bar'
Merge pull request #3573 from colindecarlo/bug-Request-segment-method-empty-segment

[Bug] Request::segment returns incorrect value when path contains an empty segment