CCITTFaxStream parser: resolve xref if needed

Fixes #5243