fixed bug #3069 (infinite loop in GPU LBP Cascade detectMultiScale)
Merge pull request #953 from jet47:fix-bug-3069