Quantum Entanglement Swapping in a Non-Markovian Environment