Harden entity parsing.

To deal with some still broken data in Cassandra.
Log the stack trace.
Merge pull request #190 from MastodonC/feature/harden-entity-parsing

Harden entity parsing.