Fix autocompletions including 'null'

This happens when a field isn't included in some documents.