Here it is. It turned out that the issue appears with option cuba.web.mainTabSheetMode = MANAGED
in web-app.properties file.
Try to open entity browser/editor window(s) in a couple of tabs and “Chart sample” in another one, then switch to any other.