Fixes #7368 - Do not set user id when it's set to empty string or it would set the same visitor id to all those visitors