JAVA-757: Reverting behavioral change to CommandResult.getException.  It now returns null, as before, if there is no exception, instead of throwing IllegalStateException.