Previously we used get_first_child (), which could cause issues with e.g. headers.
get_first_child ()