Fixed a plus one error with options.detectLngFromPath

I'm having an issue with options.detectLngFromPath returning undefined if I specifc detectLngFromPath: 1 in the init options when trying to redirect. 

The use case is trying to redirect from / to /foo/:lng.

The issue is the options.deteLngFromPath + 1 isn't defined even though it is less than parts.length.