Check for bundles before accessing the attribute.
Check for bundles before accessing the attribute.

RELNOTES: None
PiperOrigin-RevId: 242994132

bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple