PHP-1321: Handle cursor structure from mongod for listIndexes.
Initialise list later, to prevent memory leaks in case the command failed.