Clear clipboard if first element from history is removed.

Removed element should be removed from clipboard and this also solves
issue with restoring removed item after appliction's restart if this
item is in clipboard at that time.