Show an error if ViewEntityAction is used with non-Entity content

ViewEntityAction is being called with non-Entity content eg. if a
user tries to diff wikitext content with entity content.

Bug: T73546
Change-Id: I1a5781e017df645b51b3ecdb016cd6cbd2c3d557
Merge "Show an error if ViewEntityAction is used with non-Entity content"