Take care of None value for the uuid.

Receiving a None value was raising an exception that didn't show up
since was trapped inside the srpauth:logout method.

[Closes #4995]
[Closes #5071]