Possible Interplay of Intrinsic Doping and Lattice Anharmonicity in High Temperature Superconductors