CLOUDSTACK-1064:A type error occurs when trying to add account/register template: this is because of accounts conext being undefined