Hello dev-team,

I have updated
code repository
 of our production instance to the recent galaxy-dist (10216:ebe87051fadf), now the instance page it is not rendering in a proper way. 
 
The error message I can see from the log file as follows: 
------------------------------------------
x.x.x.x - - [08/Aug/2013:15:00:49 -0400] "GET / HTTP/1.1" 200 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31"
x.x.x.x - - [08/Aug/2013:15:00:50 -0400] "GET /root/tool_menu HTTP/1.1" 404 - "https://galaxy.cbio.mskcc.org/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31"
x.x.x.x - - [08/Aug/2013:15:00:50 -0400] "GET /history HTTP/1.1" 200 - "https://galaxy.cbio.mskcc.org/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31"
x.x.x.x - - [08/Aug/2013:15:00:50 -0400] "GET /history HTTP/1.1" 500 - "https://galaxy.cbio.mskcc.org/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31"
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 42042)
Traceback (most recent call last):
  File "/codebase/eggs/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 1068, in process_request_in_thread
    self.finish_request(request, client_address)
  File "/usr/lib64/python2.6/SocketServer.py", line 322, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python2.6/SocketServer.py", line 617, in __init__
    self.handle()
  File "/codebase/eggs/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 442, in handle
    BaseHTTPRequestHandler.handle(self)
  File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/codebase/eggs/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 437, in handle_one_request
    self.wsgi_execute()
  File "/codebase/eggs/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 287, in wsgi_execute
    self.wsgi_start_response)
  File "/codebase/eggs/Paste-1.7.5.1-py2.6.egg/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/codebase/lib/galaxy/web/framework/middleware/request_id.py", line 12, in __call__
    return self.app( environ, start_response )
  File "/codebase/lib/galaxy/web/framework/middleware/xforwardedhost.py", line 21, in __call__
    return self.app( environ, start_response )
  File "/codebase/lib/galaxy/web/framework/middleware/translogger.py", line 68, in __call__
    return self.application(environ, replacement_start_response)
  File "/codebase/lib/galaxy/web/framework/middleware/error.py", line 159, in __call__
    exc_info)
  File "/codebase/lib/galaxy/web/framework/middleware/translogger.py", line 67, in replacement_start_response
    return start_response( status, headers, exc_info )
  File "/codebase/lib/galaxy/web/framework/middleware/error.py", line 149, in __call__
    app_iter = self.application(environ, sr_checker)
  File "/codebase/eggs/Paste-1.7.5.1-py2.6.egg/paste/recursive.py", line 84, in __call__
    return self.application(environ, start_response)
  File "/codebase/eggs/Paste-1.7.5.1-py2.6.egg/paste/httpexceptions.py", line 633, in __call__
    return self.application(environ, start_response)
  File "/codebase/lib/galaxy/web/framework/base.py", line 132, in __call__
    return self.handle_request( environ, start_response )
  File "/codebase/lib/galaxy/web/framework/base.py", line 199, in handle_request
    return body( environ, start_response )
  File "/codebase/lib/galaxy/web/framework/__init__.py", line 985, in render
    template.render_context( context )
  File "/codebase/eggs/Mako-0.4.1-py2.6.egg/mako/template.py", line 319, in render_context
    **kwargs)
  File "/codebase/eggs/Mako-0.4.1-py2.6.egg/mako/runtime.py", line 692, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/codebase/eggs/Mako-0.4.1-py2.6.egg/mako/runtime.py", line 718, in _exec_template
    callable_(context, *args, **kwargs)
  File "/codebase/database/compiled_templates/root/history.mako.py", line 73, in render_body
    if bool( [ data for data in history.active_datasets if data.state in ['running', 'queued', '', None ] ] ):
AttributeError: 'Undefined' object has no attribute 'active_datasets'
----------------------------------------

Could you point me where I have to look to fix this issue. 

thanks in advance,
--/Vipin