[inliner] Fix the early-exit of the inline cost analysis to correctly