Reject the promise with a JavaException in TestHarness::getNumDifferingP...

...ixels