Fix v8 upgrade regressions

Refs #7309.  Reviewer: @indutny