LPS-39560 Fix. Avoid use non initialized nodes. No logic changes
LPS-39560 Format source