Avoid nasty "critical" error message when working with empty string.