get around PhantomJS zero-length stroke bug