[#5833] Ant sets exit code to 1 if TCK tests fail

The 'tests.failed' property was never checked so tell ant to return 1 on failure instead.