Fix the return value bug when updating public key database variable failure.