Backport of "element: Properly handle the fact that pasting can return NULL" into 1.16
Backport of !78 (merged) "element: Properly handle the fact that pasting can return NULL".
Commits:
Backport of !78 (merged) "element: Properly handle the fact that pasting can return NULL".
Commits: