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]
Merge remote-tracking branch 'refs/remotes/ivan/bug/4995_error-on-every-logout' into develop