fix template editor in https admin

Template editor didn't work in Firefox, if force_ssl_admin is enabled. This commit changes the frame url scheme to https in such a case.