Fix FileActions merging override

When merging FileActions, the register() functio needs to correctly
override the previously merged action handler without affecting the
original one.