Fix build errors and actually use the value of the save checkbox

Refs #10092