Fix attempt to call #visit on NilClass
Merge pull request #23 from Thalagyrt/master

Fix attempt to call #visit on NilClass