Fix exception when generating unexpected relative object class error message
Merge pull request #50 from millr/patch-1

Fix exception when generating unexpected relative object class error msg