Fixing the stale indexes detection in the database stats according to Ra...

...venDB-2621