Prevent empty carousel from throwing, and staying in a 'sliding' state.
Prevent empty carousel from throwing, and staying in a 'sliding' state.

Fixes #24132.

292388900/bootstrap-1,gencer/bootstrap,bkrukowski/bootstrap,KM-MFG/bootstrap,gencer/bootstrap,Softdocs/bootstrap,algolia/bootstrap,Softdocs/bootstrap,mosoft521/bootstrap,292388900/bootstrap-1,algolia/bootstrap,patrickhlauke/bootstrap,patrickhlauke/bootstrap,bkrukowski/bootstrap,gencer/bootstrap,mosoft521/bootstrap,algolia/bootstrap,patrickhlauke/bootstrap,KM-MFG/bootstrap,Softdocs/bootstrap,KM-MFG/bootstrap,mosoft521/bootstrap