[ArmBase] Suppress unnecessary function calls.

Running the registration function of Trriger and Event, When detected error.
When register the EventList and TriggeList, if list is empty, does not call function.