RF-13664: Replaced firstChild calls with children[0]