Fix set of model parallel in the Trainer when no GPUs are available
# What does this PR do?

Fixes how `self.is_model_parallel` is set in the Trainer when no GPUs are available.
Fixes #25236 
_The documentation is not available anymore as the PR was closed or merged._