Fixed bug resulting in autopublisher not created if autoresource already axists