Fix error handlings in mirb.

mrb_parser_new() and mrb_generate_code() may return NULL.
Merge pull request #2539 from cubicdaiya/issues/mirb_error_handlings

Fix error handlings in mirb.