Restore endif;

See
https://github.com/Automattic/jetpack/commit/c0849d17393f052836d62c3773f
a8ae70c37f5c7