Stable nodal projection method on octree grids