Output filter in template of layout?

Can I use an output filter like ‘notempty’ for a setting in the template of a layout?
It doesn’t seem to be working, is there a way to make it work?

That should work, but we have seen a few related reports lately. We haven’t identified a bug (or a fix) yet, but if you can provide further information that might help figure things out.