Passes model and index to emptyViewOptions.

Fixes #1873.