Get layer fix

`node.getLayer()` throws exception if node not in layer.
Instead `getLayer` must return null