Set context_key based on parent context_key

Fixes a bug where resources created from imports always have 'web' as the context_key rather than the actual context they are being created on.
(cherry picked from commit c5e3fa210b257dd431a5fb15b1528b15a5de2ce3)
Set context_key based on parent context_key

Checks the parent resource for context_key value, rather than assuming 'web'.
(cherry picked from commit a7284dd47ef35687a7ee707ccb9a791d01318a91)
[#9964] Fix Import HTML to use context of parent

add changlog entry
[#9964] Fix Import HTML to use context of parent

Merge branch 'bug-9964' into release-2.2

* bug-9964:
  [#9964] Fix Import HTML to use context of parent
  Set context_key based on parent context_key
  Set context_key based on parent context_key