Avoid starting session if nothing has been written to it yet.