Fix #993 undefined variable when resetting password.

I think this fixes #993 but it might not be complete since afaik this
should only affect crowdmap.