Pattern: disconnect PianoRoll before clearing current pattern

Closes #1083.