[upstream] Fix build without qtjsbackend 50d3556d5