Fix a bug with actions definied explicitly but no exception is set.