Catch case where no def line is found in AllowCamelCaseMethodsRuler

Forgot to check in one change- please review and merge.