Impact of Shock Front Rippling and Self-reformation on the Electron Dynamics at Low-Mach-number Shocks