Return an error when trying to publish messages
when the API is missing.