Uses `get_object_or_404' instead of try...except blocks to find documents

This also fixes a bug, because the views referenced an inexistent template
('core/404.html' instead of '404.html').
Merge branch 'bugfix/404-template-not-found' into develop