After the delay and the check if the current clipboard-content is still the password, the clipboard is not set with the previous content. This is the first time, that I use Alfred Workflows, but I assume the variable "clip" (which the clipboard gets set after the delay) is not set. After adding a "get{clipboard}" (before the clipboard has changed the first time) and storing its content in the variable "clip" everything works now.
After the delay and the check if the current clipboard-content is still the password, the clipboard is not set with the previous content. This is the first time, that I use Alfred Workflows, but I assume the variable "clip" (which the clipboard gets set after the delay) is not set. After adding a "get{clipboard}" (before the clipboard has changed the first time) and storing its content in the variable "clip" everything works now.