Clipboard: add null checks for Text and Html.