This would cause Waybar to crash if the privacy module ever got e.g. a empty (but properly null-terminated) string for the application_name.
Fixes #3047.