Fix counting bug preventing display of the last autocomplete option. Also fix null to coding standards.
Fix counting bug preventing display of the last autocomplete option. Also fix null to coding standards.

dansimau/matrixsqlclient,dansimau/matrixsqlclient