Bug fix for connected components when max component size is not set.

Change-Id: I822faa93577563b8ab5a44155443b952aa85439a