Update CoreRoutedPipe.java

add checks on null, otherwise you get simply a closing program if you call for example

```
itemId = nil
pipe.getUnlocalizedName(itemId)
```