Check that this.fitIndex is implemented. bug:110197

This code is workaround for IE8 with morris.js.