macosx: prevent unwanted strings from being displayed instead of empty strings as suggested by xtophe