Fixes current page statistics (duration) ignored when document closed, or when suspending and resuming. On suspend/resume, update the page start ts by the time spent sleeping, so its duration will be the time spent on it not sleeping.