Throw when an action handler is not a function