Align this modification to the one landed on trunk[1].

[1] https://bugs.webkit.org/show_bug.cgi?id=116018

Reviewed by: Marcelo Lira