If pitched rests (entered with \rest) are transposed, the \fixRests helper function ensures that rests are not positioned on staff lines
\rest
\fixRests