libfreerdp-core: fix check for null certificate