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

Fixes #4122
Fixes #4130