Fix serialization exception when using non-existent consumer

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