Fix hasModel() cid lookup for Backbone > 0.9.9

The `_byCid` object and `getByCid()` have been removed as on Backbone 0.9.9. `get()` now supports lookup by both id and cid.

Conditionally use `_byCid` implementation for backwards compatibility.