notification/mqtt: ensure network communication and check error
Merge pull request #2896 from jpmens/mqtt1

notification/mqtt: ensure network communication and check error