This issue with MQTT should fixed in 9.8.27, see commit:

9.8.27 is currently in master branch, it will be merged into stable in the next few days.

Update: 9.8.27 has now been merged into stable and is available via standard emonPi update.