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) {
                    ~~~~~~ ^~~~~~~~~~
Merge pull request #120 from 0xced/fix-analyzer-warning

Fix static analyzer warning