See my comment above. If criteria for a content type id specified by user is an empty dictionary, it is interpreted as we want to find applicability for all units of that type. This is done inside __unit_ids_to_plugin_unit_keys function.