Fixes a crash in tf's view_frames related to dot code generation