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

Cross-merge MAGN-5442 to RC0.7.4_Revit2015