fix for issue with slave agent check

addresses an issue brought to our attention in IRC chat in which the MySQL agent check was dying.  @remh i could use your guidance as to how this should be tested and so forth.