BUG: fix in response to changes in SliceLayerLogic API

the following commit broke the code:

https://github.com/Slicer/Slicer/commit/40f74cdf870f213847f77b86351032c7869762d3#diff-228dc8288779dec5ad07baedef604899