I wrote this code thinking I was fixing a problem but found that the problem was just a symptom of another problem. This code does not fix any existing current problem however if PhantomJS rolls their version to 1.10 then the previous implementation would break. Do you want me to revert this or leave it in?