libfreerdp-core: don't set connectErrorCode when there is no error