Fix crash on search before sync is complete
Remove unused using statement
Merge pull request #3185 from pboyer/PkgSearchCrashFix2015

Cross-merge MAGN-5442 to Revit2015