Don't construct message if message would be empty
Don't construct message if message would be empty

It would get released immediately at the return, but that's just a waste.

Contributes to issue CURA-4410.

Ultimaker/CuraEngine,Ultimaker/CuraEngine