BUG: Fixed to_html with index=False and max_rows
closes https://github.com/pandas-dev/pandas/issues/14998

Previously raised an IndexError by assuming that
`len(fmt_values)` was always the same length as `len(self.data)`.