Fix PHP error when re-activating user (issue #714)

I haven't tested sending the activation email though.