Fix empty mappings for old ES versions
Merge branch 'travis-fixing' into 3.0.x