If the instance state exists, pop the detail view. Fixes #436.