Prevent scripting API unit creation from creating stack conflicts