Fix issue #163

- Add check if alias / index exists before trying to create it.