fixed bug that would skip publishing on mqtt for basic republishing