Catch exception when loading JNotify.
Merge pull request #3056 from shkhln/freebsd-jnotify-fix

Catch yet another exception when loading JNotify.