That's no problem at all because government officials glued it in. Even the U.S. government glues in visas.
The point is this: if a foreign goverment glues in a visa, they aren't going to glue it over another stamp. If you glue in a visa slip that's not meant to be glued in, well, maybe it's hiding that entry stamp from Cuba, e.g.