Fix static analyzer warning

When compiling for the iOS simulator, it would produce this warning.

The receiver of message 'resultType' is nil and returns a value of type 'NSTextCheckingType' that will be garbage
```
    switch (result.resultType) {
            ~~~~~~ ^~~~~~~~~~
```