fcm-manage-trac-env-session: improve removal logic

Remove *all* session attributes if sid does not exists.
Remove session attribute if new value becomes undef.
Also improve logic for guessing email from gecos information.