BUG: DataFrame.to_html() fails when index=False and max_rows is specified

This addresses #8273, but it doesn't actually fully fix the issue, since the same bug still occurs when we have a MultiIndex. I've got a fix for the single-index case, and I'm not sure if I have time to decipher what's happening with hierarchical indexes right now. I'll open a new issue for the MultiIndex case if that's OK, having a MultiIndexed dataframe and then not printing the index seems like a bit of an edge case to me anyway.

```python
import pandas as pd
import numpy as np

df = pd.DataFrame({'a': np.arange(0, 10), 'b': np.arange(9, -1, -1)})
df.to_html(max_rows=3, index=False)
```

now produces:

<table border="1" class="dataframe">
  <thead>
    <tr style="text-align: right;">
      <th>a</th>
      <th>b</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td> 0</td>
      <td> 9</td>
    </tr>
    <tr>
      <td>...</td>
      <td>...</td>
    </tr>
    <tr>
      <td> 9</td>
      <td> 0</td>
    </tr>
  </tbody>
</table>

as expected.