Fix test_flash_attn_2_can_dispatch_composite_models for models that disable Flash Attention (#50953)
* Count the composite model itself in flash_attn_can_dispatch_composite_models
Since #50724, Gemma3, Gemma4, Molmo2 and PaliGemma turn off Flash Attention on the composite model while their
sub-models still support it. The test only checked the sub-models, so it expected Flash Attention to load and
failed on the intended ValueError.
* Update tests/test_modeling_common.py