Fix a bug in mockup view rendering.

Since mockups currently have no server-side representation, use client
identifiers (the model's .cid property) to uniquely identify them instead.