Fix compose_function() to check matching failure.