Fix bug concerning adding context to view controller when managed document is opened