Fixes collection only being set by first message
Merge pull request #491 from anna2130/mongo-msg-collection

Fixes collection only being set by first message