Fixed bug when using limit on detect and specifying languageType

While testing you module with the limit option I encountered a problem when the languageType was set, returning the following error:

```
Cannot read property '0' of undefined
```

Here is a patch for the above.