made checkShardingIndex resilient to invalid dbname #869