Fix so that returning nil as the autocomplete string works

also when committing the autocomplete text.
Merge pull request #23 from mac-cain13/feature/allow-nil

Fix so that returning nil as the autocomplete string works when committing the autocomplete text.