Fix publishing service with role with empty startup task

#408
#334