Add a temporary null check workaround because for some reasons it is possible to visit null nodes