Avoid KeyError when value is an empty dictionary
Merge pull request #356 from joshblum/es-aliases

Avoid KeyError when value is an empty dictionary