Update session.go

fix stmt query of 'Get function' bug when an error occurred