Fix logging empty string instead of no logging