Passes model and index to emptyViewOptions.

Fixes #1873.
lets also update the tests to expect these params