WICKET-5631 Allow submitting with POST method for PhantomJS

(cherry picked from commit 46591fb109e94b53a24be868a6de96bfd6117d7a)