LPS-33550 fix nullpointers when checking membership policies