check length instead of undefined for DisplayRect nodes tagname ns fallback