Merge "Guard DocumentStack#peek null check" into main