libfreerdp-core: fix potential issue while reading packet headers