Fix by_zone bug on Device, introduced with soft_delete/all_objects.