WordPress Jetpack Protect Error On Password Protected Site

I recently came across an issue with the Jetpack plugin for WordPress. If you enable the Protect setting on a password protected WordPress site, you will simply get a blank page after entering in the math answer and logging in. Took some time to find the answer to this, but it’s definitely a bug in the code. They haven’t fixed it yet and I’m on version 3.4.1. Just throwing this on here to maybe help others that are searching for the answer as well.

Add the one line to /plugins/jetpack/modules/protect.php

$use_math = $this->get_transient( 'brute_use_math' );
if ( 1 == $use_math && isset( $_POST['log'] ) ) {
include_once dirname( __FILE__ ) . '/protect/math-fallback.php';
Jetpack_Protect_Math_Authenticate::math_authenticate();
}

Credit: https://github.com/Automattic/jetpack/pull/1857/files