Fixed HTTP500 bug for unknown sessions