Fixed a bug that occur segmentation fault when freeing uninitialized key...

Fixed a bug that occur segmentation fault when freeing uninitialized key entries at as_batch_destroy function.