Fix a bug where PhantomJS would crash if there were 0 <p> elements on the page (Issue #153)