Fix crash in LineLength cop when AllowURI option is enabled

This fixes #1188 and #1190.
Merge pull request #1192 from yujinakayama/fix-crash-with-invalid-uri

Fix crash in LineLength cop when AllowURI option is enabled