Minor bugfix

Fixed error when searched for class without groups by redirecting and
providing an error message.