CA-110835: check if a XAPI session exists before attempting to get the timeout config