Fix NullPoiinterException when playing a note.