Merge branch '337-runtime-error-with-updatesharedas-2' into 'master'

fix interact with invalid intermediate states

Closes #337

See merge request !325
1 job for master in 4 minutes and 39 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #67292
test

00:04:39