[notepad] fix for null notepad root (fixes #315)