AS7-6240 Only remove XA recovery module if it is defined