fix: TypeError occurs with ::nth-fragment() and ::after-if-continues() selectors
fix: TypeError occurs with ::nth-fragment() and ::after-if-continues() selectors

- fix #1023

vivliostyle/vivliostyle.js,vivliostyle/vivliostyle.js,vivliostyle/vivliostyle.js,vivliostyle/vivliostyle.js