Passes model and index to emptyViewOptions.

Resolves #1873.

Still a work in progress. It needs unit tests and a closer look at that -1 index.