Fix possible inneficiency arising from using objects.all

Test if request.GET is empty explicitly and return all only if that
is true.