actions: require action to be non-null if we query by action type