Fixed unnecessary republish in custom pub handler