Fix null serialization with PhantomJS driver