MIFOSX-1533 Fix advanced search exception