Fix error handlings in mirb.

`mrb_parser_new()` and `mrb_generate_code()` may return NULL.