DEV: prevents error when composer is opened/closed very fast (PR #14232)

GitHub