Issue #1780012 by dewens: Fixed "parameter 1 expected to be a reference" error in Profile module's hook_user_cancel() implementation.