fix(#3567577): UX/PHP/caching issues caused by warning message to content admins

Fixes:

* PHP warning because of sometimes `count()` on NULL.
* Despite the permissions check, this patch doesn't set cache contexts, so the warning message was cached and shown to anonymous visitors.
* Content editors were confused by the warning message

Merge request reports

Loading