Is there a way to stop blender from rendering hidden objects (that do not show in the rendered view)?
In the outliner you can toggle visibility and renderability of objects.
Click on the funnel icon on the top right and enable different filters.
The eye icon determines visibility in the 3d viewport.
The monitor icon disables the object in all viewports.
The camera icon determines if the object is rendered or not.