Fix bug concerning nested defs in `EmptyLineBetweenDefs` cop.

Fixes #400.
Merge pull request #404 from jonas054/fix_empty_lines_between_defs

Fix bug concerning nested defs in `EmptyLineBetweenDefs` cop.