Don't reference lastIndexOf before polyfilling it.

As per #253, `Array.prototype.lastIndexOf` attempted to be used before it is polyfilled.