if num_modifiers is 0, modifiers has to be NULL. Reviewed-by: Emil Velikov <emil.velikov@collabora.com>