Fixes #5337 properly checking if admin notice exists