fixed issue publishing message with no subscribers