Prevent negative session expiry time being shown

* Couldn't reproduce the reported issue locally
* Code review showed one place where a negative number could have entered dialog
* Instead end session when time to expiry is negative