Update Pipe.java

fix NPE.

(see RS485/LogisticsPipes-Dev#182)