Fixes U4-5986 Compositions: Possible to get stuck in document type ysod's

#U4-5986 Fixed Due in version 7.2.1