Fixed TypeError when rendering ModelState with multiple bases.
Merge pull request #2037 from bmispelon/invalidbaseserror

Fixed TypeError when rendering ModelState with multiple bases.