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
Fix crash on empty body branches in a loop in Next cop

This fixes #1191.