Backport of "element: NULL the lists of contexts in dispose()" into 1.18
Backport of !875 (merged) "element: NULL the lists of contexts in dispose()".
Commits:
- c906ccb7 element: NULL the lists of contexts in dispose()
Backport of !875 (merged) "element: NULL the lists of contexts in dispose()".
Commits: