Update LightInject.Web.cs

fix an error if invoke GetInstance() method before the BeginRequest event