preselect exact prefix match in autopopup completion (RUBY-14617)
(cherry picked from commit 6a771e7)