improved _fnc_removeActionEventHandler to limit array length