fix crash with referencing undefined cookie array when running phantomjs directly