fix nil dereference in handling our own publish messages