v.20.4Bug Fix

Avoid Infinite Loop in dictIsIn Function

Avoid infinite loop in dictIsIn function. Fixes #515 #10365 (alexey-milovidov)