Fix key error on compound alarm expressions

Change-Id: I2f29545b58d47c05ad87a5c3cb4c81de4e08b56a