Made single shards APIs fail if routing is configured to be required in the mapping.

 This change make single shard requests fail when no routing is specified and routing has been configured to be required in the mapping. Thi

 Closes #4506