Fixed bug where IE 10 wouldn't properly initialize template dialog due to async loading issues.