Fix empty session id.

There is a bug in core Drupal, which has been fixed in Drupal 7, need same fix in 6 "The session is created with an empty string sid".
Here is a possible fix, should use !empty(), rather than isset(), to ensure that blank session IDs are not valid.