fix if this.model is null

it's a special case that this.model is null in IE9, I'd like to check if
this.model is defined, then use this.model.prototype.