CC-4919: Library -> Search: Exception happens when switching back to simple search with some illegal input in Advanced Search

-fixed