Fix returning all entities at search

Instead of returning an empty list for the query, the query returns all by
default.
For example searching for a not existing lecture no returns an empty group
list.