libfreerdp-common: add some null pointer checks.