In ERD code, handle blank names.

For some reason when I run this I get crashes because it's hitting classes with no names. This fixed it.