Minor optimization of Tag.canInline method.

Call nodes.length only once.