Catch ObjectDoesNotExist errors in template filter