fix: adding lines on empty staff with parts causes crash