Do not add empty measures to sheet music

Fix bug #2