Fix Publication failure handling.

Required for https://its.cern.ch/jira/browse/CAF-300