Added return if result cursor is an array so that the export operation won't crash.