Added a GetChildrenCount check before attempting to retrieve the first child to prevent ArgumentOutOfRangeExceptions
Merge pull request #52 from ArturPhilibin/bugfix-ArgumentOutOfRangeException

Sometimes ItemsControlExtensions throws an ArgumentOutOfRangeException