Short and probably a stupid question, but.. Shouldn't this topology be loop-free or have I understood something totally wrong? The switches seem to loop when the dashed connection in the picture is connected. Shouldn't the RSTP running on either core switch block port 23?

Or if this is not the correct configuration, which would be? Basically the need is to connect non-STP capable cheap racktop switches to two separate core switches, to provide core switch redundancy.
The configuration in the picture works fine with HP 2800 or higher STP capable switches as edge switches when the port blocking is done by them, but obviously not with non-STP capable 1800 series switches.