PCT-637: Query Analytics does not handle MySQL Restart

http://tools-ci.percona.com/job/percona-agent-branch/28/console
:+1:  done