Coverity: fix wmspec uninitialized layer variable