Fix crash in sample-hab caused by creating an additional HabPublisher.