undefined method name for nil:NilClass

https://github.com/voormedia/rails-erd/issues/54