fix exception handling for celements skins and layouts