Check if content is non-NA before indexing

* src/xapr.cpp (xapr_index): Don't index content equal to NA_STRING.