The ternary operator is still backwards- that was the original problem.  Your change to HttpRuntime is more correct and negates teh need for a check of HttpContext.Current as we're not evening using this.

@Iristyle comments?