fix nbconvert filter validation

Fixes issue #3505