Handle empty case in FrameHierarchy.