Revert "Throw exception if passing invalid action (Bug #12317)."

This is a logic error. Now we require *all* modification actions to be passed.

This reverts commit 0fd35ec967a51b8ae0cda8ee0e0d1331d928bc79.
Correctly catch unknown actions (Bug #12317).