Fixed a minor issues with NOTE being overwritten by REPL_STATUS when MySQL access was broken.