Properly close abandoned new project that couldn't be written

Also rewrite the default session in case it was cleared.
Fix GLib warning 'app->project == NULL failed'

Occurred on Project->New with an existing project when closing an
unsaved file was cancelled.