Clear the session object in the Template as well

Before this commit, the app->destroy_session called clear_session only
on the app's session instance, but not on the template's session
instance