Avoid fatal Demo driver error when index is empty.
Add some default parameter values.
Avoid notice.