raise exceptions on NULL return from Julia API (see Julia issue #2755)