Add missing `isTag` check in 'nth-last-of-type' pseudo function

Seems like there should be an `isTag` check here, like in `nth-of-type` and other similar functions.

I don't know if the omission would actually cause an issue since the two subsequent `if` checks would fail for text nodes and the like, but might as well be consistent :smile: