Fix TRIGGER generation if alarm value is negative.

We don't support negative alarm values, i.e. alarms after the event start,
natively, but they may be added from external clients and work fine otherwise.

Bug: 13064
[jan] Fix TRIGGER generation if alarm value is negative (Bug #13064).