[lit] Avoid deprecated dict.has_key() method.