RAZ-1789: Basket: When sending FTP a session not defined error could occur