A closed project keeps no nodes, links or drawings in memory, so the
stats endpoint returned all zeros until the project was opened again.
When the project is closed, read the .gns3 file and count the scene
elements from it. When the file cannot be read (for example a project
that was never dumped), fall back to the in-memory counts.
Fixes#1836