Better for the Painting
Ultimately, removing the mosquito from the painting was a good idea. As Meredith explains, there could have been a stain that a conservator could likely have removed.
But the fact remains that the removal of the mosquito had a dual effect. On one hand, it preserved the painting from further potential damage, and on the other hand, the unfortunate mosquito played yet another crucial role.