WebAPIResource.get_list: Handle get_queryset() exception.

It can throw a ObjectDoesNotExist that now translates to a 404.
Fixes #2551.