matcher: Allow empty chains

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>