make sure we do the line_item adjustment check before rendering the adjustments

Fixes #4122