Better fix for gevent's KeyError issue

With this patch ./bokeh-server and ipython -c "import bokeh"
won't exhibit this behavior. ipython -c "import bokeh.server"
will throw KeyError, but server code is unlikely to be run
from within IPython.
Merge pull request #315 from mattpap/fix-gevent-keyerror

Better fix for gevent's KeyError issue