Adjust the action's interface.
Properly check if newInstance() returns valid action.