See #161: Corrected NPE issue with autocomplete keys.