Fix for calculateInSampleSize when reset fails.