Add null-test in case the root has not been set yet