Fix crash in LineLength cop when AllowURI option is enabled

This fixes #1188 and #1190.