Fix in phantomjs asserts
Merge branch 'fix-phantomjs' into 0.4.1-SNAPSHOT