Move check for config.hwp.layer2 to the correct line.