Fix rare crash when wires or pipes missing a tile entity.  Fixes #368