[Oxygen] Fix crash on close with tabs on top enabled.

See #838