Fix error handling for mrb_pool_realloc().

mrb_pool_alloc() may return NULL.
Merge pull request #2542 from cubicdaiya/issues/mrb_pool_realloc_error_handlings

Fix error handling for mrb_pool_realloc().