Fixes #41 OOM on bogus thrift input