[qtdeclarative] Fix infinite loop in QQmlIncubator::forceCompletion

Backport of 54b73b8ab53ee41d9c8a855aa9a3da425e0a3f8f from 5.2.0