GetMapping failed when index had no mapping (yet)

Closes #3534