Fix unused-variable warning in ctkLayoutViewFactory::createViewFromXML

This commit fixes warning introduced by 02fa38b
Merge branch 'add-ctklayoutviewfactory'

* add-ctklayoutviewfactory:
  Fix unused-variable warning in ctkLayoutViewFactory::createViewFromXML