fixed bug where ContentPartRecord can be null