I can reproduce this in the kirigami gallery and my own application, Kaidan (see https://github.com/KaidanIM/Kaidan/issues/153).
It's probably not intended that every application has to manually set the actions to disabled, when the item is not opened.