Fixed PHP-795: MongoCode segfaults when internal 'code' property is modified