comparator fix

Same as https://github.com/firebase/backbonefire/pull/124 but for the `0.5.1-release` branch.