LPS-37677 Try to reliably get the first element node even if strip filter is turned off
LPS-37677 - Source formatting