Fix for completion while typing when starting typing in middle of string
Merge pull request #3005 from aparajit-pratap/durianBugs

Cross-merge from master into Revit2015 for PR #2988