Fixed bug #647: Scanning wrong indexes do not trigger scan error.