[ArmBase] Add a new member function hasTrigger() (issue #736)

ArmBase has an issue that it stores self-monitoring triggers to DB
in spite of having no such triggers. To fix this issue, such a
function is needed.