Fix serialization exception caused by non-existent consumer

A simple fix with a test case for when you have a bad consumer.