slidesPerView = 'auto' infinite loop fix

I had a setup where containerSize was 0 for some reason. No matter the cause I think it's good to check that code does not go to infinite loop which can happen without this fix. There is probably a better way to fix this issue, but this atleas stopes browsers from crashing and everything seemed to work just fine.