Fix bug with modals on entity pages.
Minimal null checking when submiting/editing a comment