Prevent empty output from htmlspecialchars.