Fix internal server error at url /account/recover

Fixed a 500 error at /account/recover when trying to reset password on the
login page.

Testing Done:
Verified that the server no longer returns a 500 error when loading the form.

Reviewed at https://reviews.reviewboard.org/r/5431/