Fixes: #2941 fixed PHP errors in password recovery when it's disabled