Fix for render-context.js due to earlier change to allow custom Context class