Fixed ArgumentNullException

For some reason in my project HttpContext.Current.ApplicationInstance is null,
as a result Elmah core library throws exception. I've added check for 
this type of error.