Stop an expansion when there is nothing in the clipboard

I have a snippet I run for creating new user accounts from a first and last name that I copy into the clipboard. I accidentally ran it before I had the name selected and it built the account with "[Error - No match found.]" in all the fields. Is there some logic that I could use to have the expansion stop if this situation exists?

{=extractregex({clipboard}, "(.+?)")&extractregex({clipboard}, ".+? (.+)")}
{key: tab}
{import: /pass}
{key: tab}
{import: /pass}
{key: tab}
{=extractregex({clipboard}, "(.+?) ")}
{key: tab}
{=extractregex({clipboard}, ".+? (.+)")}
{key: tab}
{key: tab}
{=extractregex({clipboard}, "(.+?)")&extractregex({clipboard}, ".+? (.+)")}@domain.com
{key: tab}
{click}

You can put something like this around your snippet:

{if: trim({clipboard}) <> ""}
Insert stuff
...
...
{else}
{error: You forgot to copy!}
{endif}

Thank you!