messaging: do nothing if messaging backend is unset
It can be useful to run without a messaging backend for testing purposes
(or even in production.) So if the messaging backend is unset, don't
send messages rather than erroring out.
Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>