Fixed #2061463: added a call to entity_access in the view mode page to make sure that a user has permission to see something. This also fixes the problem when the entity is unpublished