Avoid a critical on shutdown

The category may not be set if we've never switched to the category
page.
Don't leak a GsApp

We should unref the GsApp that is shown in the details page
on shutdown.