ilmClient: Fix segv when a layer is added.