fix notebook deletion.

do not thrust what "that" is in a 3 level deep
callback
Merge pull request #2968 from Carreau/fixdel

fix notebook deletion.