fix NPE in indexing file annotations

To test, try adding file annotations and make sure that errors no longer appear in `var/log/Indexer-0.log`.

cc @bpindelski