Remove the special case for empty dataframes in to_html.

Fixes issue #6062.
Merge pull request #6405 from filmor/patch-1

Remove the special case for empty dataframes.