fix($compile): updating the jQuery .context when it is replaced

This allows replaced DOM nodes to be GCed when using jQuery. The issue is pretty minor and the jQuery .context might be removed in the future (see https://api.jquery.com/context/), but the fix is pretty simple.

Fixes #7900