Fix #4187

The hashable type check was running but not breaking the loop