Actually fixed the NPE, I hope

Follow up to [#24](https://github.com/hilburn/NotEnoughResources/issues/24),[#25](https://github.com/hilburn/NotEnoughResources/issues/25)
Hopefully the problem is actually fixed.