GRADLE-2990, REVIEW-3647 Fixed the --tests option so that it correctly detects when there are no matching tests.