Fix #85: Improve inventory helper, avoid NPEs

Adding NPE checks so we just no-op and don't crash.
Also improving checkForDoubleChest to not check up/down and to check for
null TEs