Fixed AgaviDoctrineDatabase Context instance setting being broken, closes #808 and refs #800