Fix a bug in recording a macro while flyspell-mode is active