Issue #3165010 follow-up: Using the layout builder discard changes button should ignore any input and skip validation (cherry picked from commit e1b4aafa)