producer: fix panic when conn is never assigned
Merge pull request #82 from mreiferson/producer_panic_82

producer: panic on error before first connection