Fixed AgaviDoctrineDatabase Context instance setting being broken, closes #732 and refs #724