Fix error handling for mrb_open_allocf().

When `DISABLE_GEMS` is not defined and a return value of `mrb_open_core()` is `NULL`, `mrb_open_allocf()` may cause SEGV.