Crash closing document with Pages tool active (1.2-dev)

Steps to reproduce:

  • Open Inkscape
  • Switch to the Pages tool
  • Close document (Ctrl+W)

What happened?

What should have happened?

  • No crash

Version info

  • Inkscape 1.2-dev (a95d8ae62b, 2022-01-06) Linux Mint 20