fix initSelection with empty input value
Merge pull request #1073 from norlin/master

Fix initSelection method with empty input value