Fix FileActions merging override

When merging FileActions, the register() functio needs to correctly
override the previously merged action handler without affecting the
original one.

Fixes https://github.com/owncloud/core/issues/9433

Please review @MorrisJobke @icewind1991 @schiesbn