API now responds to empty queries properly