Fix res_config_mysql crash (thanks drumkilla!) (bug #3009)