Fix NPE in core when library is missing
Merge pull request #151 from jwestberg/npe-fix

Fix NPE in core when library is missing