A degree bound for families of rational curves on surfaces