This post explains how to configure so the mandatory flag is set on all messages sent. It is not a direct solution to your question, but it will ensure messages is not lost when sending to an exchange that does not have any bindings.