Fix SegFault when FrameElements is empty

parent d2244215
Pipeline #21070 passed with stages
in 14 seconds