Fix search box in the model registry

Fix error when a name of an unknown package is searched