Fixed a bug where AgentContext#getDocumentContext failed with an UndefinedDelegateException (Issue #66)