Fix Escalator testing with assert enabled on PhantomJS (#13334)

Change-Id: I6a5eb39c44873932bdde3a229f7ed52bc7c4df8c