Fix issuable state indicator
What does this MR do?
Fixes issuable state indicator
Why was this MR needed?
Issuable reference state check works only in project scope, if we reference an issuable from a non-project resource (e.g. epics), then project is not set, and there is mismatch in generated issue references.
HTML text for an issue referenced from a group is
If project is not set we try to use group instead.
What are the relevant issue numbers?
Closes gitlab-ee#4683 Related to #30916 (closed)