Ensure params is not None instead of having two return statements and two calls to the action handler when dispatching actions