CB-6159 Fix incorrect "success" message when publishing fails.

Problem was introduced by promise refactoring.