Check for null resources in ResourceInfo class to avoid NPE when rendering RM UI.
This was fixed as part of YARN-7934 which didn't make it to 3.0 and below.
[GQ] Refactor preemption calculators to allow overriding for Federation Global Algos
TestNodeLabelContainerAllocation fails in branch-3.0
Backport resource types/GPU features to branch-3.0/branch-2