Play nice with theme previews in the Customizer -- don't write to the db unless changes are saved.