Fix bug in validating Swift transaction ID

Currently Swift tests fail if a custom transaction ID with non-hex values is
used. This patch fixes this by modifying the regex.

Change-Id: Ia2cc9c81ee7875006e96c31bcd05e8b5069df3bf
Closes-Bug: #1262534
Merge "Fix bug in validating Swift transaction ID"