Independency of "Grace note before barline"

A possible solution (workaround) that I found: