Fix missing _all when types are specified but no default index is set

Closes #1160
No need to replace spaces
Merge pull request #1162 from elasticsearch/fix/1160

Fix missing _all when types are specified but no default index is set