Passes model and index to emptyViewOptions.

Fixes #1873.
perhaps move -1 to be this._emptyViewIndex = -1 or something in the file