This change makes os_stack module idempotent. Otherwise, re-use of the module fails with: Error updating stack: ERROR: The Parameter (...) was not provided. Fixes #3165.