Make ServletContext available even a bit earlier than it already was.

git-svn-id: https://google-guice.googlecode.com/svn/trunk@911 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/servlet/src/com/google/inject/servlet/GuiceServletContextListener.java b/servlet/src/com/google/inject/servlet/GuiceServletContextListener.java
index a9b57e5..70810ca 100644
--- a/servlet/src/com/google/inject/servlet/GuiceServletContextListener.java
+++ b/servlet/src/com/google/inject/servlet/GuiceServletContextListener.java
@@ -37,10 +37,10 @@
 
   public void contextInitialized(ServletContextEvent servletContextEvent) {
     ServletContext servletContext = servletContextEvent.getServletContext();
-    servletContext.setAttribute(INJECTOR_NAME, getInjector());
 
     // Set the Servletcontext early for those people who are using this class.
     GuiceFilter.servletContext = new WeakReference<ServletContext>(servletContext);
+    servletContext.setAttribute(INJECTOR_NAME, getInjector());
   }
 
   public void contextDestroyed(ServletContextEvent servletContextEvent) {