Topological and geometrical entanglement in a model of circular DNA undergoing denaturation