check if cur_frame is NULL

Fixes a crash on non-existing input file.

Before:
    > moar invalid.moar
    > echo %errorlevel%
    -1073741819

After:
      >moar invalid.moar
      Unhandled exception: While looking for 'invalid.moar': no such file or directory      
      >echo %errorlevel%
     1