Fixes https://gitlab.com/kicad/code/kicad/issues/4110
This allows us to use it outside of EDA_BASE_FRAMEs (in this case, in PANEL_PREVIEW_3D.)