Fixed issue #10: Note checks for rep invariant that pitch is not null.