Remove redundant NULL checks.
mrb_malloc causes an exception when memory was empty.
Merge pull request #1948 from monaka/pr-remove-unused-null-check

Remove redundant NULL checks.