Only render an nbsp on empty lines when no eol character defined

Fixes #3053