Magnetic molecules as local sensors of topological hysteresis of superconductors