Fallback to resource.id when cannot read resource[pk]
Merge pull request #50 from flyvictor/fix-specific-id-creation

Fallback to resource.id when cannot read resource[pk]