Throw error when model is missing `rev` attribute

As suggested by @iUtvikler in #29