Add workaround for browserkit bug fix

I think this is a reasonable enough workaround for #682.