Fix JS error when opening VE on redirect page

Change-Id: I95dd2dc2c52ffa3d420a579592e84001bd2b10e8