Prevent warning while indexing if some fields aren't defined.