MAGN-5442: Fix crash on search before sync is complete

#### Fix

Before synchronization is complete, users should not be able to search.  This simply causes search to do nothing until sync is done.

#### Reviewers

- [x] @ikeough