CLOUDSTACK-6626: UI - fix a bug that g_userid was not declared.