TAB formatting re-aligned with changes on semantics for chord and stem function computing stem data.
add some checks for corrupted input files
Merge pull request #180 from mgavioli/Fix_#19611_#19709_tab_stem_too_long

Fix #19611 and #19709 - TAB stems too long