fixes #2771 - ensures holder and resources are not null