Preserving entanglement during weak measurement demonstrated with a violation of the Bell–Leggett–Garg inequality