allow elements with null parentNode in  and bugfix to route integration test