Magnetic molecules as sensors of topological hysteresis of superconductors