Don't get confused (on the server) if transform returns something without _id.

Fixes #974.