aosd: Don't crash on invalid trigger values. Closes: #243.