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.
Merge pull request #1193 from yujinakayama/fix-crash-in-next

Fix crash in Next cop
Cut 0.24.1