Fixed bug produced by last commit in Session.ThrowIfInvalid()