run.sh: Fix critical error when skipping tags

Change-Id: I8bf751aded638286de877b82a248040d440d8802