Added initSelection to variant_autocomplete

Fixes #4862