Fix VideoEngine render tree that would not build in some rare conditions