Fixed #19746 -- Allow deserialization of pk-less data

Thanks rafallo for the report.