Fix #21928 - Missing ledger lines / short stems etc

The bug in question (#21928) has been open for over a year and the test case present, along with the test case in the associated bug #21938, both now work as intended. It's either been fixed in some of the changes I've been adding recently or possibly even before that. In any case, this PR adds a test to verify this now works.