Fixed bug where topic was always 'text/plain' instead of the value specified in the config file