Set to defaultTagParameter be the tag matched when defaultValue is empty and maxTags is 1.
 Also added unit test. Based on JENKINS-14155.