libfreerdp-core: fix possible crash on unauthorized TS Gateway error