Fix JS error when opening VE on redirect page

Change-Id: I95dd2dc2c52ffa3d420a579592e84001bd2b10e8
(cherry picked from commit 989fd6214cf851e86bb4155f0fea6da008fcfab8)