Don't rename the session when its name is nil

Signed-off-by: Luc-Pascal Ceccaldi <luc-pascal.ceccaldi@af83.com>